package j01gouzao;

public class J03manyextends {
}
//Object，类，所有类的父类，String
class Ye1{
    int a = 200;
    int x = 3;
}
class Fa1 extends Ye1{
    int a=100;
}
class Ch1 extends Fa1{
    int a = 8;
    int b;
    public void f1(){
        System.out.println("this.a="+this.a);
        //直接找父类
        System.out.println("super.a = " + super.a);
        System.out.println("this.x = " + this.x);
        System.out.println("super.x = " + super.x);
    }
}
class Ch1Test{
    public static void main(String[] args) {
        Ch1 c1 = new Ch1();
        c1.f1();
    }
}